package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TravelCommendMapper {
    int insert(TravelCommend record);

    TravelCommend selectByPrimaryKey(Long id);

    int updateByPrimaryKey(TravelCommend record);

    List<TravelCommend> selectForList(QueryObject qo);

    List<TravelCommend> selectCommendByType(@Param("type") Integer type,
                                            @Param("beginDate") Date beginDate,
                                            @Param("endDate") Date endDate);

    void deleteAllTrategyCommend(Integer type);
}